import httpInstance from "@/utils/axios.js";

//查询作品
export function getWork(data){
    return httpInstance.post('/work/getWorkByCondition',data)
}

//根据作品名称查询作品
export function getWorkByName(data){
    return httpInstance.post('/work/selectWorkByName',data)
}

//删除作品
export function deleteWork(data){
    return httpInstance.delete('/work/deleteWork',data)
}

//新增作品
export function addWork(data){
    return httpInstance.post('/work/addWork',data)
}

//修改作品
export function updateWork(data){
    return httpInstance.put('/work/updateWork',data)
}
